package logic;

public class Action {
	public int type;
	
	public Action(int type) {
		this.type = type;
	}
	
	/**
	 * Overrides default .equals(Object o)
	 * Compares with an action in a non-strict manner
	 * 
	 */
	public boolean equals(Object object) {
		if (this.getClass() != object.getClass()) {
			return false;
		} else {
			Action action = (Action) object;
			if(this.type == action.type) {
				return true;
			} else {
				return false;
			}
		}
	}
}
